import { createSlice } from "@reduxjs/toolkit";

const count_slice = createSlice({
  name: "counter",
  initialState: {
    value: 0,
  },
  reducers: {
    incremented: (state) => {
      state.value += 1;
    },
  },
});

export const { incremented } = count_slice.actions;

export default count_slice.reducer;
